package com.czwj.entities;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Jobber{
	private Integer id;
	
	private Integer projectitemid;
	
	private Integer projectitemchildid;
	
	private Integer userid;
	
	private String salary;
	
	private String projectitemname;
	
	private String username;
	
	private Date date;
	
	private String departmentname;
	
	private Integer cnt;
	
	private String money;
	
	private ProjectItem item;
	
	private ProjectItemChild projectitemchild;
	
	public ProjectItem getItem(){
		return item;
	}
	
	public void setItem(ProjectItem item){
		this.item = item;
	}
	
	public ProjectItemChild getProjectitemchild(){
		return projectitemchild;
	}
	
	public void setProjectitemchild(ProjectItemChild projectitemchild){
		this.projectitemchild = projectitemchild;
	}
	
	public String getProjectitemname(){
		return projectitemname;
	}
	
	public void setProjectitemname(String projectitemname){
		this.projectitemname = projectitemname;
	}
	
	public String getUsername(){
		return username;
	}
	
	public void setUsername(String username){
		this.username = username;
	}
	
	@JsonFormat(pattern="yyyy-MM-dd")
	public Date getDate(){
		return date;
	}
	
	public void setDate(Date date){
		this.date = date;
	}
	
	public String getDepartmentname(){
		return departmentname;
	}
	
	public void setDepartmentname(String departmentname){
		this.departmentname = departmentname;
	}
	
	public Integer getCnt(){
		return cnt;
	}
	
	public void setCnt(Integer cnt){
		this.cnt = cnt;
	}
	
	public String getMoney(){
		return money;
	}
	
	public void setMoney(String money){
		this.money = money;
	}
	
	public Integer getId(){
		return id;
	}
	
	public void setId(Integer id){
		this.id = id;
	}
	
	public Integer getProjectitemid(){
		return projectitemid;
	}
	
	public void setProjectitemid(Integer projectitemid){
		this.projectitemid = projectitemid;
	}
	
	public Integer getProjectitemchildid(){
		return projectitemchildid;
	}
	
	public void setProjectitemchildid(Integer projectitemchildid){
		this.projectitemchildid = projectitemchildid;
	}
	
	public Integer getUserid(){
		return userid;
	}
	
	public void setUserid(Integer userid){
		this.userid = userid;
	}
	
	public String getSalary(){
		return salary;
	}
	
	public void setSalary(String salary){
		this.salary = salary == null?null:salary.trim();
	}
}
